<html>
<head><meta charset="utf-8"><title>Improvement for runnables · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Improvement.20for.20runnables.html">Improvement for runnables</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="188328411"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Improvement%20for%20runnables/near/188328411" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Improvement.20for.20runnables.html#188328411">(Feb 16 2020 at 15:08)</a>:</h4>
<p>Now I am trying to provide closer integration of runnable's detection with  cargo. Who dug the project more deeply? Is there any way to get information about project layout? And also i am interested about module futures. <br>
Sorry if this is a noobish</p>



<a name="188329482"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Improvement%20for%20runnables/near/188329482" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Improvement.20for.20runnables.html#188329482">(Feb 16 2020 at 15:47)</a>:</h4>
<p>What exactly do you have in mind for "close integration"? It might be a good idea to take a look at <a href="https://github.com/rust-analyzer/rust-analyzer/pull/3153" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/pull/3153">https://github.com/rust-analyzer/rust-analyzer/pull/3153</a>, which touches many relevant thigns</p>



<a name="188331230"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Improvement%20for%20runnables/near/188331230" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Improvement.20for.20runnables.html#188331230">(Feb 16 2020 at 16:46)</a>:</h4>
<p>So, when we analyze runnable we should respect project layout. For example main func entry point maybe located only in path  that defined in manifest or default path also main not always entry point<br>
<a href="https://doc.rust-lang.org/cargo/reference/manifest.html" target="_blank" title="https://doc.rust-lang.org/cargo/reference/manifest.html">https://doc.rust-lang.org/cargo/reference/manifest.html</a><br>
<a href="https://doc.rust-lang.org/cargo/reference/manifest.html#configuring-a-target" target="_blank" title="https://doc.rust-lang.org/cargo/reference/manifest.html#configuring-a-target">https://doc.rust-lang.org/cargo/reference/manifest.html#configuring-a-target</a></p>
<p>In addition, we can not extract runnable if we have multiple definition or another kind of problem with locally correction of code</p>



<a name="205003233"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Improvement%20for%20runnables/near/205003233" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Improvement.20for.20runnables.html#205003233">(Jul 25 2020 at 13:05)</a>:</h4>
<p>(deleted)</p>



<a name="206104716"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Improvement%20for%20runnables/near/206104716" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Improvement.20for.20runnables.html#206104716">(Aug 06 2020 at 04:52)</a>:</h4>
<p>How i can get FileId by string path?</p>



<a name="206105579"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Improvement%20for%20runnables/near/206105579" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Improvement.20for.20runnables.html#206105579">(Aug 06 2020 at 05:12)</a>:</h4>
<p><code>vfs.file_id</code>, I think, if you have access to it</p>



<a name="206223980"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Improvement%20for%20runnables/near/206223980" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Improvement.20for.20runnables.html#206223980">(Aug 07 2020 at 04:51)</a>:</h4>
<p>I will try to reformulate the question.  How i can resolve std::process::Termination for getting it implementation in std library</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>